package com.gang.utils;

import com.spire.doc.Document;
import com.spire.doc.FileFormat;

import java.util.UUID;

public class PDF {
    public static UUID getpdf(UUID uuid) {

        Document document = new Document();
        document.loadFromFile("H:\\"+uuid+".docx");
        UUID uuid1=UUID.randomUUID();
        document.saveToFile("H:\\"+uuid1+".pdf", FileFormat.PDF);
        return uuid1;
    }
}
